package edu.cmu.ece.ds.droidchat.model;

public class ChatMessage {
    private UserInfo userinfo;
    private String messageContent;

    public ChatMessage(UserInfo userinfo, String messageContent) {
        this.userinfo = userinfo;
        this.messageContent = messageContent;
    }

    public UserInfo getUserinfo() {
        return userinfo;
    }

    public void setUserinfo(UserInfo userinfo) {
        this.userinfo = userinfo;
    }

    public String getMessageContent() {
        return messageContent;
    }

    public void setMessageContent(String messageContent) {
        this.messageContent = messageContent;
    }

    @Override
    public String toString() {
        return "ChatMessage[userinfo=\"" + userinfo + "\",messageContent=\""
                + messageContent + "]";
    }

}
